{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}\\file\UsersW$\wrr15\Home\My Documents\My Files\D'HAULTFOEUILLE Files\DATAVERSE FILES\TABLE5.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}31 May 2019, 19:05:06
{txt}
{com}. etime, start
{txt}
{com}. set matsize 10000
{txt}
{com}. 
. use "\\file\UsersW$\wrr15\Home\My Documents\My Files\D'HAULTFOEUILLE Files\DATAVERSE FILES\GentzkowData.dta", clear
{txt}
{com}. 
. sort cnty90 year
{txt}
{com}. xtset cnty90 year
{res}{txt}{col 8}panel variable:  {res}cnty90 (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 1868 to 1928, but with gaps
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. 
. // Notice that Gb_placebo and Gf_placebo are only defined for those groups whose treatment is stable between T-2 nd T-1
. 
. gen G_T = .
{txt}(16,872 missing values generated)

{com}. gen Gb_placebo = .
{txt}(16,872 missing values generated)

{com}. forvalue i=1872(4)1928 {c -(}
{txt}  2{com}. replace G_T =(changedailies>0)-(changedailies<0) if (year==`i')& mainsample==1
{txt}  3{com}. replace Gb_placebo = G_T if (numdailies[_n-2]==numdailies[_n-1]) & (year[_n-2]==year[_n-1]-4)
{txt}  4{com}. {c )-} 
{txt}(739 real changes made)
(0 real changes made)
(910 real changes made)
(617 real changes made)
(915 real changes made)
(744 real changes made)
(968 real changes made)
(677 real changes made)
(969 real changes made)
(668 real changes made)
(968 real changes made)
(634 real changes made)
(1,065 real changes made)
(601 real changes made)
(1,066 real changes made)
(639 real changes made)
(1,080 real changes made)
(653 real changes made)
(1,093 real changes made)
(730 real changes made)
(1,109 real changes made)
(715 real changes made)
(1,184 real changes made)
(805 real changes made)
(1,183 real changes made)
(874 real changes made)
(1,189 real changes made)
(845 real changes made)
(1,189 real changes made)
(909 real changes made)

{com}. 
. gen G_T_for = G_T[_n+1]
{txt}(1,245 missing values generated)

{com}. gen Gf_placebo = Gb_placebo[_n+1]
{txt}(6,761 missing values generated)

{com}. 
. // W-TC estimate with cluster-robust standard errors
. 
. set seed 1
{txt}
{com}. fuzzydid prestout G_T G_T_for year numdailies, tc newcateg(0 1 2 1000) qualitative(st1-st48) cluster(cnty90) 
{txt}(running estim_wrapper on estimation sample)

Bootstrap replications ({res}50{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
{res}
No method was specified to estimate E(Y|X), E(D|X) and P(D=d|X). Method set to default: ols.


{txt}{p 0 0 2}Estimator(s) of the local average treatment effect with bootstrapped  standard errors.  Cluster variable: cnty90.  Number of observations:  16872 .  Controls included in the estimation:  st1 st2 st3 st4 st5 st6 st7 st8 st9 st10 st11 st12 st13 st14 st15 st16 st17 st18 st19 st20 st21 st22 st23 st24 st25 st26 st27 st28 st29 st30 st31 st32 st33 st34 st35 st36 st37 st38 st39 st40 st41 st42 st43 st44 st45 st46 st47 st48 .{p_end}

{space 0}{space 0}{ralign 12:}{space 1}{c |}{space 1}{ralign 9:LATE}{space 1}{space 1}{ralign 9:Std_Err}{space 1}{space 1}{ralign 9:t}{space 1}{space 1}{ralign 9:p_value}{space 1}{space 1}{ralign 9:lower_ic}{space 1}{space 1}{ralign 9:upper_ic}{space 1}
{space 0}{hline 13}{c   +}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}
{space 0}{space 0}{ralign 12:W_TC}{space 1}{c |}{space 1}{ralign 9:{res:{sf: .0043428}}}{space 1}{space 1}{ralign 9:{res:{sf: .0011789}}}{space 1}{space 1}{ralign 9:{res:{sf: 3.683669}}}{space 1}{space 1}{ralign 9:{res:{sf: .0002299}}}{space 1}{space 1}{ralign 9:{res:{sf: .0015496}}}{space 1}{space 1}{ralign 9:{res:{sf: .0060633}}}{space 1}

{com}. 
. // This section corresponds to the placebo analysis
. gen prestout_l1=l4.prestout
{txt}(1,243 missing values generated)

{com}. 
. // W-TC-placebo estimate with cluster-robust standard errors for groups whose treatment is stable between T-2 and T-1
. 
. set seed 1
{txt}
{com}. fuzzydid prestout_l1 Gb_placebo Gf_placebo year numdailies, tc newcateg(0 1 2 1000) qualitative(st1-st48) breps(100) cluster(cnty90) 
{txt}(running estim_wrapper on estimation sample)

Bootstrap replications ({res}100{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
{res}
No method was specified to estimate E(Y|X), E(D|X) and P(D=d|X). Method set to default: ols.


{txt}{p 0 0 2}Estimator(s) of the local average treatment effect with bootstrapped  standard errors.  Cluster variable: cnty90.  Number of observations:  13221 .  Controls included in the estimation:  st1 st2 st3 st4 st5 st6 st7 st8 st9 st10 st11 st12 st13 st14 st15 st16 st17 st18 st19 st20 st21 st22 st23 st24 st25 st26 st27 st28 st29 st30 st31 st32 st33 st34 st35 st36 st37 st38 st39 st40 st41 st42 st43 st44 st45 st46 st47 st48 .{p_end}

{space 0}{space 0}{ralign 12:}{space 1}{c |}{space 1}{ralign 9:LATE}{space 1}{space 1}{ralign 9:Std_Err}{space 1}{space 1}{ralign 9:t}{space 1}{space 1}{ralign 9:p_value}{space 1}{space 1}{ralign 9:lower_ic}{space 1}{space 1}{ralign 9:upper_ic}{space 1}
{space 0}{hline 13}{c   +}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}
{space 0}{space 0}{ralign 12:W_TC}{space 1}{c |}{space 1}{ralign 9:{res:{sf:-.0008691}}}{space 1}{space 1}{ralign 9:{res:{sf: .0016497}}}{space 1}{space 1}{ralign 9:{res:{sf:-.5268059}}}{space 1}{space 1}{ralign 9:{res:{sf: .5983284}}}{space 1}{space 1}{ralign 9:{res:{sf:-.0038236}}}{space 1}{space 1}{ralign 9:{res:{sf: .0022657}}}{space 1}

{com}. 
. // W-TC estimate with cluster-robust standard errors on subsample of groups whose treatment is stable between T-2 and T-1
. 
. set seed 1
{txt}
{com}. fuzzydid prestout Gb_placebo Gf_placebo year numdailies, tc newcateg(0 1 2 1000) qualitative(st1-st48) breps(100) cluster(cnty90) 
{txt}(running estim_wrapper on estimation sample)

Bootstrap replications ({res}100{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
{res}
No method was specified to estimate E(Y|X), E(D|X) and P(D=d|X). Method set to default: ols.


{txt}{p 0 0 2}Estimator(s) of the local average treatment effect with bootstrapped  standard errors.  Cluster variable: cnty90.  Number of observations:  13221 .  Controls included in the estimation:  st1 st2 st3 st4 st5 st6 st7 st8 st9 st10 st11 st12 st13 st14 st15 st16 st17 st18 st19 st20 st21 st22 st23 st24 st25 st26 st27 st28 st29 st30 st31 st32 st33 st34 st35 st36 st37 st38 st39 st40 st41 st42 st43 st44 st45 st46 st47 st48 .{p_end}

{space 0}{space 0}{ralign 12:}{space 1}{c |}{space 1}{ralign 9:LATE}{space 1}{space 1}{ralign 9:Std_Err}{space 1}{space 1}{ralign 9:t}{space 1}{space 1}{ralign 9:p_value}{space 1}{space 1}{ralign 9:lower_ic}{space 1}{space 1}{ralign 9:upper_ic}{space 1}
{space 0}{hline 13}{c   +}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}
{space 0}{space 0}{ralign 12:W_TC}{space 1}{c |}{space 1}{ralign 9:{res:{sf: .0044878}}}{space 1}{space 1}{ralign 9:{res:{sf: .0019382}}}{space 1}{space 1}{ralign 9:{res:{sf: 2.315483}}}{space 1}{space 1}{ralign 9:{res:{sf: .0205865}}}{space 1}{space 1}{ralign 9:{res:{sf: .0007612}}}{space 1}{space 1}{ralign 9:{res:{sf: .0088328}}}{space 1}

{com}. 
. etime
{res}Elapsed time is 2 hours 46 minutes 2 seconds 
{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}\\file\UsersW$\wrr15\Home\My Documents\My Files\D'HAULTFOEUILLE Files\DATAVERSE FILES\TABLE5.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}31 May 2019, 21:51:08
{txt}{.-}
{smcl}
{txt}{sf}{ul off}